<?phpinclude_once("../../../config.php");$event_nid = $_REQUEST['event_nid'];$tag = select_one_line_all_items($table_Prefix."member_setting",' nid=1');$tagList=select_lines_all_items($table_prefix."member_tag","","leader_nid=".$_REQUEST['leader_nid'],"");$tagArr = explode(',', str_replace('，',',',$tag['tag']));$data =  array();foreach ($tagArr as $key => $tagV){    $data[$key]['tag'] = $tagV;    $data[$key]['num'] = 0;    $data[$key]['checked'] = false;    foreach ($tagList as $keyL => $tagL){        if(strstr($tagL['tag'],$tagV)){            $data[$key]['num']++;            if($user_id == $tagL['member_nid']){                $data[$key]['checked'] = true;            }        }    }}$all_num = array_column($data,'num');array_multisort($all_num,SORT_DESC,$data);$arr['status'] = 200;$arr['data'] = $data;die(json_encode($arr));?>